﻿using System.ComponentModel.DataAnnotations;

namespace Model.Entity.Comment
{
    /// <summary>
    /// 评论表
    /// </summary>
    public class TB_Comment : EntityBase_LONG
    {
        /// <summary>
        /// 内容
        /// </summary>
        [Required, MaxLength(8192)]
        public string Content { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        [Required]
        public int UserId { get; set; }
        /// <summary>
        /// 浏览数量
        /// </summary>
        [Required]
        public int ViewNumber { get; set; }
        /// <summary>
        /// 点赞数量
        /// </summary>
        [Required]
        public int LikeNumber { get; set; }
        /// <summary>
        /// 评论数量
        /// </summary>
        [Required]
        public int CommentNumber { get; set; }
        /// <summary>
        /// 收藏数量
        /// </summary>
        [Required]
        public int CollectNumber { get; set; }
        /// <summary>
        /// 文章Id
        /// </summary>
        public long? ArticleId { get; set; }
        /// <summary>
        /// 评论Id
        /// </summary>
        public long? CommentId { get; set; }
    }
}
